xen/arm: dom0_build: Remove dead code in allocate_memory
authorJulien Grall <julien.grall@arm.com>
Tue, 12 Jul 2016 13:59:29 +0000 (14:59 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 13 Jul 2016 17:36:09 +0000 (18:36 +0100)
commitac014e210317517e1856fae5621792e7b7cbe02b
treef8be265bbc586f6ad1c53f5675118edf1e17a1da
parentabea864be5bf96608165c4cc2704da1da4cad3d5
xen/arm: dom0_build: Remove dead code in allocate_memory

The code to allocate memory when dom0 does not use direct mapping is
relying on the presence of memory node in the DT.

However, they are not present when booting using UEFI or when using
ACPI.

Rather than fixing the code, remove it because dom0 is always direct
memory mapped and therefore the code is never tested. Also add a
check to avoid disabling direct memory mapped and not implementing
the associated RAM bank allocation.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/domain_build.c